#include <string.h>
#include "project.h"

char modules[MAX_NUM_MODULES][21];
int grades[MAX_NUM_MODULES];

//stub - returns true first time and false second time
int nextStudentExists(void)
{
    static int result = 5;

    result--;

    return result;
}

student_t getNextStudent(void)
{
    student_t someStudent;

    strcpy(someStudent.id, "B00001234");
    strcpy(someStudent.firstName, "Joe");
    strcpy(someStudent.surName, "Bloggs");

    return someStudent;
}

int getNumModules (void)
{
    return 6;
}

int getGrades (char id[])
{
    int i;

    for(i = 0; i < getNumModules(); i++)
    {
        grades[i] = 30 + (i * 10);
        strcpy(modules[i], "test module");
    }

    return 1;
}

int getNthStudent(int index, student_t *student_ptr)
{
    strcpy(student_ptr->firstName, "Joe");
    strcpy(student_ptr->surName, "Bloggs");
    strcpy(student_ptr->id, "B00001234");

    return 1;
}


